package com.gitee.zycra.future.job.common.model;

import com.gitee.zycra.jdbc.annotation.BatchInsertIgnore;
import com.gitee.zycra.jdbc.annotation.Column;
import com.gitee.zycra.jdbc.annotation.ID;
import com.gitee.zycra.jdbc.annotation.Table;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author zycra
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Table("job_dependence")
public class JobDependence {

    /**
     * 主键
     */
    @ID
    @Column("id")
    private Long id;

    /**
     * 父调度信息ID
     */
    @Column("parent_schedule_id")
    private Long parentScheduleId;

    /**
     * 子调度信息ID
     */
    @Column("child_schedule_id")
    private Long childScheduleId;

    /**
     * 操作人ID
     */
    @Column("operator_id")
    private Long operatorId;

    /**
     * 操作人姓名
     */
    @Column("operator_name")
    private String operatorName;

    /**
     * 创建时间
     */
    @BatchInsertIgnore
    @Column("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @BatchInsertIgnore
    @Column("update_time")
    private LocalDateTime updateTime;

    /**
     * 是否删除(0:否,1:是)
     */
    @BatchInsertIgnore
    @Column("deleted")
    private Boolean deleted;
}
